# Uncomment this line to define a global platform for your project
# platform :ios, '12.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup
source 'https://gitee.com/mirrors/CocoaPods-Specs.git'
target 'Runner' do
  use_frameworks!
  use_modular_headers!

  
#  pod 'AFNetworking'
##  pod 'Bugly'
#  pod 'Masonry'
#  pod 'SDWebImage' #, '~> 5.9.0'
#  pod 'NSDictionary-NilSafe'
#  pod 'MBProgressHUD'
#  pod 'MJRefresh'
#  pod 'MJExtension'
#  pod 'YYKit'
#  pod 'IQKeyboardManager'
#  pod 'CWStatusBarNotification', '~> 2.3.5'
#  pod 'RTRootNavigationController'
#  pod 'DZNEmptyDataSet'
#  pod 'JXPagingView/Pager' ##2.1.0
#  pod 'JXCategoryView' ##1.5.9
#  pod 'CWLateralSlide', '~> 1.6.3'
#  pod 'SDCycleScrollView', '1.80'
#  #https://github.com/gsdios/SDCycleScrollView/issues
#
#  #pod 'TXIMSDK_TUIKit_iOS'
#  #pod 'TXIMSDK_iOS', '~> 5.1.62'
#  pod 'TXIMSDK_Plus_iOS', '~> 5.7.1'
#  pod 'ISVImageScrollView', '0.2.0'
#  pod 'AgoraRtcEngine_iOS', '~> 3.4.7' ##'~> 3.2.0'
#  pod 'AgoraMediaPlayer_iOS','~> 1.3.0'
#  pod 'CRBoxInputView'#, '1.2.1'
#  pod "SSZipArchive"
#  pod 'ZZCircleProgress'
#
#  pod 'UMCommon', '~> 7.3.5' ## 统计 7.3.5 最新的是UMCommon配合UMAPM网络分析
#  pod 'UMAPM', '~> 1.5.3'    ## 网络分析 1.5.3 https://developer.umeng.com/docs/193624/detail/291394
#  ## NOTICE:如果要开启网络，需要app发起网络前开启网络配置项，方能捕获到全量数据，否则网络捕获功能可能会缺失数据或者失效 和其他三方网络库一起的时候，可能会产生冲突，导致网络模块失效
#  #pod 'UMCCommonLog' ### only dev 需要调试再开打调试
#  pod 'UMDevice', '~> 2.0.5' ##分享配置
#  pod 'UMLink', '~> 1.2.0' ##分享配置 可选集成，对应了智能超链产品U-Link，如想统计分享回流人数、分享新增用户指标则必选
#  pod 'UMShare/Social/WhatsApp', '~> 6.10.4'
#  pod 'UMShare/Social/Facebook', '~> 6.10.4'
#  pod 'UMShare/Social/FaceBookMessenger', '~> 6.10.4'
#
#  pod 'YBPopupMenu'
#  pod 'JhtMarquee'
#  pod 'AliyunOSSiOS', :path => './PodCache/AliyunOSSiOS'
#  pod 'TheAmazingAudioEngine'
##  pod 'SJVideoPlayer'
#  pod 'SJUIKit/SQLite3', :podspec => 'https://gitee.com/changsanjiang/SJUIKit/raw/master/SJUIKit-YYKit.podspec'
#  pod 'ReactiveObjC', '~> 3.1.1'
#  pod 'JCore' # 可选项，也可由pod 'JPush'自动获取
#  pod 'JPush' # 必选项
#  pod 'Firebase/Auth'
#  pod 'GoogleSignIn', '~> 6.0.1'
  #pod 'FBSDKLoginKit', '~> 11.1.0'
#  pod 'TwitterKit5', '~> 5.2.0'
#  pod 'TwitterKit', :path => './PodCache/TwitterKit'
#  pod 'TwitterCore', :path => './PodCache/TwitterCore'
  #pod 'TwitterKit', '~> 3.4.2'
  #pod 'Nama','~> 7.3.2'
#  pod 'AGMCapturer_iOS'
#  pod 'QGVAPlayer', :path => './PodCache/QGVAPlayer'
#  pod 'AWERTL', :path => './PodCache/AWERTL'
#  pod 'AliyunLogProducer', '~> 2.2.25'
#  pod 'AWSS3'
#  pod 'QCloudCOSXML' #, '~> 6.1.4'
#  pod 'QCloudCore' #, '~> 6.1.4'
#  pod 'WechatOpenSDK', '1.8.1'
#  pod 'CL_ShanYanSDK', '2.3.5.3' # 闪验SDK(一键登录)
#  pod 'libpag', :path => './PodCache/libpag'
#  pod 'SDWebImageWebPCoder'
  ## https://github.com/aliyun/aliyun-log-ios-sdk
  ## https://github.com/bytedance/AWERTL
  ## https://www.jianshu.com/p/4fcf4a6710a1 RTL适配
  pod 'LookinServer', :configurations => ['Debug']
  
  
  
  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  target 'RunnerTests' do
    inherit! :search_paths
  end
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end
